import {request,getBaseURL} from "@/router/axios";

//制药行业获取数据
export function getPillData(id){
    return request({
        url: '/pillorganizedemissions/public/' + id,
        method: 'get',
    })
}
//焦化行业获取数据
export function getCokingData(id){
    return request({
        url: '/cokingemissions/public/' + id,
        method: 'get',
    })
}
//获取同分异构分子式
export function getVocData(query){
    return request({
        url: '/vocmolucular/map',
        method: 'get',
        params: query
    })
}
//获取致癌健康数据
export function getCancerData(id){
    return request({
        url: '/healthriskscan/map/' + id,
        method: 'get'
    })
}
//获取非致癌健康数据
export function getNocancerData(id){
    return request({
        url: '/healthrisksnocan/map/' + id,
        method: 'get'
    })
}
//获取降解菌数据
export function getBacteriaSimpleData(id){
    return request({
        url: '/degrabact/simple/' + id,
        method: 'get'
    })
}
//获取降解菌数据详情
export function getBacteriaData(id){
    return request({
        url: '/degrabact/' + id,
        method: 'get'
    })
}
//获取反应式数据
export function getReactionSimpleData(query){
    return request({
        url: '/vocequation/getEquationSimapleMap',
        method: 'get',
        params: query
    })
}
//获取反应式数据详情
export function getReactionData(query){
    return request({
        url: '/vocequation/getEquationMap',
        method: 'get',
        params: query
    })
}

//获取气溶胶类别
export function getAerosolType(str){
    return request({
        url: '/aerosolcategory/category/' + str,
        method: 'get',
    })
}

//获取气溶胶所有类别
export function getAerosolAllType(){
    return request({
        url: '/aerosolcategory/categorys',
        method: 'get',
    })
}

//获取气溶胶数据
export function getAerosolData(id){
    return request({
        url: '/aerosolitems/map/' + id,
        method: 'get'
    })
}

//获取分子式图片
export function getMoleculePic(str){
    
    return getBaseURL() + "/img/" + str
}

//请求分子式图片
export function getPic(str){
    return getBaseURL() + '/vocmolucular/image/' + str;
}

//获取第一作者论文数据
export function getPapperFirst(){
    return request({
        url: '/achievement/papper/first',
        method: 'get',
    })
}

//获取非第一作者论文数据
export function getPapperNoFirst(){
    return request({
        url: '/achievement/papper/nofirst',
        method: 'get',
    })
}

//获取授权专利数据
export function getPatentAuth(){
    return request({
        url: '/achievement/patent/authorize',
        method: 'get',
    })
}

//获取未授权专利数据
export function getPatentNoAuth(){
    return request({
        url: '/achievement/patent/noauthorize',
        method: 'get',
    })
}

//获取在研基金数据
export function getFundSearch(){
    return request({
        url: '/achievement/fund/search',
        method: 'get',
    })
}

//获取结题基金数据
export function getFundNoSearch(){
    return request({
        url: '/achievement/fund/nosearch',
        method: 'get',
    })
}

//获取新闻数据
export function getNews(){
    return request({
        url: '/achievement/news',
        method: 'get',
    })
}

//石油行业获取数据
export function getOilData(id){
    return request({
        url: '/oilemissions/public/' + id,
        method: 'get',
    })
}